<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
	<form id="frmcreatedetails" name="frmcreatedetails" method="post"
				action="CreateProduct.do"  enctype="multipart/form-data">	
<div class="boxeditadmin">
	<div class="paddingboxadmin">
		<div class="onerowedit">
			<a href="ProductsManage.do"><img src="images/backbt.png" alt="#" border="0" /></a>
		</div>
		<div class="onerowedit">
			<h1 class="p2">CREATE PRODUCT</h1>
		</div>
		<div class="onerowedit">
			<span class="formlablerow"> Product Name:</span><input class="inputadmin" type ="text" name = "productname" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Price:</span><input class="inputadmin"  type ="text" name = "price" />   
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Model:</span><input class="inputadmin"  type ="text" name = "model" />  
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Description:</span><input class="inputadmin"  class="inputadmin"  type ="text" name = "description" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Warranty:</span><input class="inputadmin"  type ="text" name = "warranty"/>
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Image 1:</span><input class="inputadmin"  type ="file" name = "file" path = "file" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Image 2:</span><input class="inputadmin"  type ="file" name = "file" path = "file" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Tax:</span><input class="inputadmin"  type ="text" name = "tax"/>
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Quantity:</span><input class="inputadmin"  type ="text" name = "quantity"/>
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Product Catalog:</span>
			<select name ="productcatalog" class="inputadmin">
				<c:forEach var ="p" items ="${requestScope.cataloglist}">
				<option value = "${p.catalogid}"> ${p.catalogname}</option>
				</c:forEach>
			</select>
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Deals:</span>
			<select name = "deal" class="inputadmin">
				<option value ="-1">--No deals--</option>
				<c:forEach var ="p" items ="${requestScope.deallist}">
				<option value = "${p.dealid}"> ${p.dealname}</option>
				</c:forEach>
			</select>
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Brand:</span>
			<select name = "brand" class="inputadmin" >
				<c:forEach var ="p" items ="${requestScope.brandlist}">
				<option value = "${p.brandid}"> ${p.brandname}</option>
				</c:forEach>
			</select>
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Condition:</span>
			<select name = "condition"  class="inputadmin" >
				<c:forEach var ="p" items ="${requestScope.conditionlist}">
				<option value = "${p.conditionid}"> ${p.conditionname}</option>
				</c:forEach>
			</select>
		</div>
		
		<div class="onerowedit">
			<span class="formlablerow">Specifications:</span><input class="inputadmin"  type = "text" name = "spec" />
		</div>
		<div class="onerowedit">
			<span class="formlablerow">Features:</span><input  class="inputadmin" type ="text" name = "features" />
		</div>
		<div class="onerowedit" align="center">
			<input class="submitbuttonadmin" type ="submit" value = "Submit" name ="Submit"/>
		</div>
	</div>                  
</div>	
</form>